gtkgesture: Do not update gestures with mismatching n-points on touchpad
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 23 Sep 2022 11:45:46 +0000 (13:45 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 23 Sep 2022 14:04:32 +0000 (16:04 +0200)
commit872534e763a85dde41fcc6a44d1634114cb32bfc
tree2de0e573a4a45cdca99f2d14b4081aa909eede49
parentd351cbbcea4c7e89663597cba6d40fd9b96a7e6f
gtkgesture: Do not update gestures with mismatching n-points on touchpad

Check that the touchpad gesture event has a matching number of fingers before
updating the GtkGesture point tracking, instead of afterwards. Avoids pointless
tracking of these touchpad events when we know beforehand that the gesture
will never be activated by the touchpad events.

Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/5199
gtk/gtkgesture.c